<div id='whole'>
<head>
   <link href="/site_media/css/page.css" site_media="screen" rel="Stylesheet" type="text/css" />
   <link href="/site_media/css/test.css" site_media="screen" rel="Stylesheet" type="text/css" />

   {% ifequal tsr.teststatus_id 4 %}
   <meta http-equiv="refresh" content="5" />
   {% endifequal %}

<script type="text/javascript">
function init()
{
    logarea.scrollTop = logarea.scrollHeight;
    //errarea.scrollTop = errarea.scrollHeight;
}
</script>
</head>

<body onload="init()">

<h1>Test Suite Run Details</h1> 

<div class="testsuite">
Name: {{ testsuite }} 
<br>
Revision: {{ tsr.svnrev }}
<br>
Author: {{ tsr.author }}
<br>
Date: {{ tsr.testtime }}
<p>

<h2>
BuildStatus:
            {% ifequal tsr.teststatus_id 4 %}
            <FONT COLOR="#CC9900">
            {% else %}{% ifequal tsr.teststatus_id 3 %}
                <FONT COLOR="#009900">
            {% else %}{% ifequal tsr.teststatus_id 2 %}
                <FONT COLOR="#000099">
            {% else %}{% ifequal tsr.teststatus_id 1 %}
                <FONT COLOR="#990000">
            {% else %}
                <FONT COLOR="#000000">
            {% endifequal %}
            {% endifequal %}
            {% endifequal %}
            {% endifequal %}
            {{ tsr.teststatus }}
        </FONT>
    </h2>
<p>

<div class="tests"> 
    <h4>Available Tests in testsuite:</h4>
        {% for test in tests %}
        <br>
        {{ test }}
        {% endfor %}
    </div>
    <p>
<div class="testruns"> 
    <h4>Activated Test Runs:</h4>
    {% for testrun in testruns %}
    <br>
            {% ifequal testrun.teststatus_id 4 %}
            <FONT COLOR="#CC9900">
            {% else %}{% ifequal testrun.teststatus_id 3 %}
                <FONT COLOR="#009900">
            {% else %}{% ifequal testrun.teststatus_id 2 %}
                <FONT COLOR="#000099">
            {% else %}{% ifequal testrun.teststatus_id 1 %}
                <FONT COLOR="#990000">
            {% else %}
                <FONT COLOR="#000000">
            {% endifequal %}
            {% endifequal %}
            {% endifequal %}
            {% endifequal %}
            <a href="/testruns/{{ testrun.id }}">{{ testrun.id }}</a> | {{ testrun.test }} | {{ testrun.teststatus }} | {{ testrun.testtime }}
            </FONT>
        {% endfor %}
</div>
</div>
<p>
<div class="log">
    <h4>TestSuiteRun Log:</h4>
        <br>
    <TEXTAREA id="logarea" rows=20 cols=80>
        {{ tsr.logtail }}
    </TEXTAREA>
</div>

<p>
<a href="/testsuiteruns">up</a>
<a href="{{ surf.prev }}">previous</a>
<a href="{{ surf.next }}">next</a>

</body>
</div>
